<template>
  <public-dialog
    title="项目阶段"
    width="50%"
    v-model:visible="visible"
    :footer-button="false"
  >
      <template #default>
          <project-node ref="projectNodeRef"/>
      </template>
  </public-dialog>
</template>

<script setup>
import PublicDialog from "@/components/PublicDialog.vue";
import ProjectNode from "../components/projectNode";
import {nextTick, ref} from "vue";

/**
 * 打开弹窗
 */
const visible = ref(false);
const projectNodeRef = ref(null);
const open = (data) => {
  visible.value = true;
    nextTick(()=>{
        projectNodeRef.value.getData(()=>{},data.projectId,data.projectTypeId);
    });
}

defineExpose({
    open
});
</script>

<style lang="scss" scoped>

</style>